<?php
namespace Amis\dataviewer;

use Amis\Basics\AmisBasics;

class Status extends AmisBasics
{
    public string $type = 'status';

    public function className(string $className)
    {
        $this->className = $className;
        return $this;
    }

    /**
     * 占位文本
     * @param string $placeholder
     * @return $this
     */
    public function placeholder(string $placeholder = '-')
    {
        $this->placeholder = $placeholder;
        return $this;
    }

    /**
     * 映射图标
     * @param array $map
     * @return $this
     */
    public function map(array $map)
    {
        $this->map = $map;
        return $this;
    }

    /**
     * 映射文本
     * @param array $labelMap
     * @return $this
     */
    public function labelMap(array $labelMap)
    {
        $this->labelMap = $labelMap;
        return $this;
    }
}